package com.elmcode.server.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.elmcode.common.utils.PageUtils;
import com.elmcode.server.dto.UserSaveInfo;
import com.elmcode.server.entity.UserEntity;
import com.elmcode.server.exception.ParamsException;
import com.elmcode.server.exception.UserException;
import com.elmcode.server.vo.UserVo;

import java.util.Map;

/**
 * 员工
 *
 * @author laozj
 * @email laozj@elm.com
 * @date 2024-06-13 13:05:04
 */
public interface UserService extends IService<UserEntity> {

    PageUtils queryPage(Map<String, Object> params);

    UserVo login(String loginName, String password);

    void saveUser(UserSaveInfo userSaveInfo) throws UserException;

    void updateUserInfo(Long id, UserSaveInfo userSaveInfo);

    void deleteById(Long id);

    void updateStatus(Long id, String status) throws ParamsException;
}

